package org.example.controller;

import org.example.infoproperties.InfoProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    private InfoProperties infoProperties;

    public IndexController(InfoProperties infoProperties) {
        this.infoProperties = infoProperties;
    }
    @GetMapping("/")
    public String index() {
        return "你好,"+infoProperties.getUrlName();
    }
}
